projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21ca60f
)
parse-datetime: Use labs() for long input value
author
Colin Walters
<walters@verbum.org>
Tue, 25 Oct 2016 17:16:14 +0000
(13:16 -0400)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Thu, 27 Oct 2016 17:02:01 +0000
(17:02 +0000)
Fixes a compliation warning with CLang, I didn't study it to
see whether this was a major issue or not.
Closes: #548
Approved by: jlebon
src/ostree/parse-datetime.y
patch
|
blob
|
history
diff --git
a/src/ostree/parse-datetime.y
b/src/ostree/parse-datetime.y
index d05bb55b1112a5294d4524e35d95712096a9bfcb..f5688d30b511bb86c48609854f4bef1947fb1950 100644
(file)
--- a/
src/ostree/parse-datetime.y
+++ b/
src/ostree/parse-datetime.y
@@
-896,7
+896,7
@@
time_zone_hhmm (parser_control *pc, textint s, long int mm)
/* If the absolute number of minutes is larger than 24 hours,
arrange to reject it by incrementing pc->zones_seen. Thus,
we allow only values in the range UTC-24:00 to UTC+24:00. */
- if (24 * 60 < abs (n_minutes))
+ if (24 * 60 <
l
abs (n_minutes))
pc->zones_seen++;
return n_minutes;